# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

urlpatterns = patterns('docs.admin_views',
    (r'^$', 'project_list'),
    (r'^(?P<project_slug>[\w-]+)/versions/$', 'project_versions'),
    (r'^(?P<project_slug>[\w-]+)/(?P<action>(join|quit))/$', 'project_join_quit'),
    (r'^(?P<project_slug>[\w-]+)/$', 'project_page_list'),
    
    (r'^(?P<project_slug>[\w-]+)/page/(?P<page_slug>[\w-]+)/$', 'page'),
    (r'^(?P<project_slug>[\w-]+)/page/(?P<page_slug>[\w-]+)/changes/$', 'page_change'),
    
    (r'^people/$', 'people_list'),
    (r'^people/(?P<username>[\w]+)/$', 'people'),
#    (r'^paragraph/(?P<paragraph_id>\d+)/translation/$', 'paragraph_translation'),
#    (r'^paragraph/(?P<paragraph_id>\d+)/comment/$', 'paragraph_comment'),
#    (r'^paragraph/(?P<paragraph_id>\d+)/histories/$', 'paragraph_history'),
)
